package com.cyys.modules.system.model.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cyys.common.model.BaseBean;
import com.cyys.common.validate.Edit;
import com.cyys.common.validate.Insert;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ParamBasic extends BaseBean {

	@TableId(value = "id", type = IdType.INPUT)
	private String id;

	@TableField(condition = SqlCondition.LIKE)
	@NotBlank(message = "参数名称不能为空",groups = {Edit.class, Insert.class})
	private String name;

	@NotBlank(message = "系统内部参数名称不能为空",groups = {Edit.class, Insert.class})
	private String systemName; //系统内部参数名称

	private Integer sort; //排序

}
